package org.jeecg.modules.gpsRecord.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.gpsRecord.entity.GpsRecord;
import org.jeecg.modules.gpsRecord.mapper.GpsRecordMapper;
import org.jeecg.modules.gpsRecord.service.IGpsRecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: gps记录
 * @Author: jeecg-boot
 * @Date:   2025-03-26
 * @Version: V1.0
 */
@Service
public class GpsRecordServiceImpl extends ServiceImpl<GpsRecordMapper, GpsRecord> implements IGpsRecordService {

    @Override
    public List<GpsRecord> getByTankerId(String id) {
        LambdaQueryWrapper<GpsRecord> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(GpsRecord::getTankerId, id);
        return this.list(wrapper);
    }
}
